package AccesoDatos;

import java.sql.DriverManager;
import java.sql.Connection;
import java.sql.PreparedStatement;

public class Conexion {

    public static Connection getConexion() {
        try {
            Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
            Connection conexion = DriverManager.getConnection("jdbc:sqlserver://localhost;databaseName=Pedidos", "jhordanr", "123");
            return conexion;
        } catch (Exception ex) {
            ex.printStackTrace();
            return null;
        }
    }
}